
///////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////// Table 5 - Primary Results ////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////

*** Loading the Data 
use Data_OPO_Master.dta, clear
keep if use==1

*** Regressions for Table 5
reg sc_cert_granted panel_odd_party_out respondent_odd_party_out petitioner_odd_party_out  i.sc_term i.coa_circuit  , cluster(sc_term)
outreg2  using "Table5.tex", nocons replace tex dec(3) drop( i.sc_term i.coa_circuit)

reg sc_cert_granted panel_odd_party_out respondent_odd_party_out petitioner_odd_party_out coa_enbanc coa_panel_dissent coa_lc_reversed dismissed  i.sc_term i.coa_circuit  , cluster(sc_term)
outreg2  using "Table5.tex", nocons append tex dec(3) drop( i.sc_term i.coa_circuit)


reg sc_cert_granted panel_odd_party_out respondent_odd_party_out petitioner_odd_party_out sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln i.sc_term i.coa_circuit  , cluster(sc_term)
outreg2  using "Table5.tex", nocons append tex dec(3) drop( i.sc_term i.coa_circuit)

reg sc_cert_granted panel_odd_party_out respondent_odd_party_out petitioner_odd_party_out  coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln  i.sc_term i.coa_circuit  , cluster(sc_term)
outreg2  using "Table5.tex", nocons append tex dec(3) drop(i.sc_term i.coa_circuit) sortvar(panel_odd_party_out respondent_odd_party_out petitioner_odd_party_out  coa_enbanc coa_panel_dissent coa_lc_reversed dismissed sc_cert_sg_petitioner sc_cert_sg_respondent sc_pet_corp sc_resp_corp sc_pet_pro_se sc_pet_vet_atty_ln)


****** Calculating the Effect Sizes for the Text of the Manuscript

*** Probability of Cert with No Odd Party Out
summarize sc_cert_granted if no_odd_party_out==1 

*** Column 2 (This is the petitioner_odd_party_out coefficient divided by the probability of cert with no OPO)
di .0295245/.0641847 

*** Column 2 (This is the petitioner_odd_party_out coefficient divided by the probability of cert with no OPO)
di .023358/.0641847 
